");},success:function(response){var obj=jQuery.parseJSON(response);if(obj.hasOwnProperty('theform')){$('#response1').html(obj.theform);}else{$('#response1').html(obj);}},complete:function(){$('#response').html('');},error:function(jqXHR,textStatus,errorThrown){alert(textStatus+errorThrown+textStatus);}});}catch(e){console.log('Eztrades error has occured');console.error(e,e.stack);alert("sorry a error occured!");}});$("#btnViewRatings").click(function(){try{var tid=$("#tradeid").val();$("#Dialog").modal('show');var u=url+"forms/ajax_get_ratings";$.ajax({url:u,type:"post",data:{id:tid},beforeSend:function(){},success:function(response){var obj=jQuery.parseJSON(response);if(obj.data){var m='
';if(jQuery.isEmptyObject(obj.data)){m+='sorry noone has voted for this trades person | ';}$("#message").hide();$.each(obj.data,function(key,value){var rate_text=value.rating_text;var rate_val=value.rating_score;var rate_date=value.dateadded;m+=' |
'+rate_date+' | '+rate_text+'';m+=' |
';for(var i=0;i';}m+='';m+=' ';});m+=" | |
Close";$('#response1').html(m);}},complete:function(){$('#response').html('');},error:function(jqXHR,textStatus,errorThrown){alert(textStatus+errorThrown+textStatus);}});}catch(e){console.log('Eztrades error has occured');console.error(e,e.stack);alert("sorry a error occured!");}});$(".srchview").on('click',function(event){var id=$(this).val();if(Math.floor(id)==id&&$.isNumeric(id)){tid=id;}else{var tid=$("#tradeid").val();}try{$("#theId").val(tid);$("#Dialog").modal('show');$("#message").hide();var u=url+"forms/ajax_get_sendmessage_form";$.ajax({url:u,type:"post",data:{id:tid},beforeSend:function(){$('#response1').html("");},success:function(response){var obj=jQuery.parseJSON(response);if(obj.hasOwnProperty('theform')){$('#response1').html(obj.theform);$.getScript("https://www.google.com/recaptcha/api.js");$('#googler').append($(''));setTimeout(function(){grecaptcha.render('captcha_container',{'sitekey':gr});},1000);}},complete:function(){$('#response').html('');},error:function(jqXHR,textStatus,errorThrown){alert(textStatus+errorThrown+textStatus);}});}catch(e){console.log('Eztrades error has occured');console.error(e,e.stack);alert("sorry a error occured!");}});});function send_trades_person_message(){try{event.preventDefault();$('html, body').animate({scrollTop:$("#message").offset().top},2000);var tid=$("#tradeid").val();var mess_email=$("#inEmail").val();var mess_name=$("#inName").val();var mess_phone=$("#inPhone").val();var mess_pcode=$("#inPostcode").val();var mess_txt=$("#txtmessage").val();if(mess_name==''){$("#message").show();$("#message").html('please enter your name
');return;}if(!validateEmail(mess_email)){$("#message").show();$("#message").html('Invalid Email
');return;}if(mess_pcode==''){$("#message").show();$("#message").html('please enter your postcode
');return;}if(mess_txt==''){$("#message").show();$("#message").html('please enter a description of work to be done
');return;}var u=url+"forms/ajax_send_message";$.ajax({url:u,type:"post",data:{tid:tid,meMail:mess_email,meName:mess_name,mePhone:mess_phone,mePcode:mess_pcode,meTxt:mess_txt,message_type:"message",grecaptcharesponse:grecaptcha.getResponse()},beforeSend:function(){$('#message').html("");},success:function(response){var obj=$.parseJSON(response);$('#waiting').html("");if(obj.hasOwnProperty('google_ok')){$("#message").html("Invalid google captcha!");grecaptcha.reset();}else{if(obj.hasOwnProperty('errors')){$("#message").show();var m='';$.each(obj.errors,function(key,value){m+=value.form_err+'
';});$("#message").html(m);grecaptcha.reset();}else{$('#message').html("");$('#inName').val('');$('#inEmail').val('');$('#inPostcode').val('');$('#inPhone').val('');$('#txtmessage').val('');}}},complete:function(){},error:function(jqXHR,textStatus,errorThrown){$("#Dialog").modal('hide');},});}catch(e){console.log('Eztrades error has occured');console.error(e,e.stack);alert("sorry a error occured!");}}function save_rating(){try{var tid=$("#tradeid").val();var selected_rating=rating;var text_rating=$("#txtrating").val();var token=$("#form_key").val();var u=url+"forms/ajax_save_rating";$.ajax({url:u,type:"post",data:{id:tid,rating:selected_rating,txtrating:text_rating,token:token},beforeSend:function(){$('#waiting').html("");},success:function(response){var obj=$.parseJSON(response);$('#waiting').html("");if(obj.hasOwnProperty('errors')){var m='';$.each(obj.errors,function(key,value){m+=value.form_err+'
';});$("#message").show();$("#message").html(m);}else{$('#response1').html("Close");}},complete:function(){},error:function(jqXHR,textStatus,errorThrown){alert(textStatus+errorThrown+textStatus);}});}catch(e){console.log('Eztrades error has occured');console.error(e,e.stack);alert("sorry a error occured!");}}function closeDlg(){$('#Dialog').modal('hide');}NOTE: Enter a email, password and select whether you are a trades person
Signup Here
PASSWORD MUST BE 8 CHARACTERS MINIMUM, HAVE 1 or MORE NUMBERS AND A CAPITAL
Eztrades Features
- EZtrades is FREE to both trades people and customers
- After Registering - select 'Trades People' and set areas and trades you cover
- Add your FaceBook profile page
- Add a company logo / image
- Customers can search using postcode area and trade
- Customers can send messages to trades people
- Customers can add a Quote select whether or not you are interested in the job